function t(o) {
    o.length > 0 && wx.uploadFile({
        url: a.url + "addon/Examhtong/Examhtong/uploader",
        filePath: o[0],
        name: "photo",
        formData: {
            user: "test"
        },
        success: function(a) {
            a.data;
            o.splice(0, 1);
            var e = wx.getStorageSync("strpicname") || [];
            wx.setStorageSync("strpicname", e.concat(a.data)), t(o);
        },
        fail: function(t) {
            wx.showToast({
                title: "上传照片失败",
                icon: "loading",
                duration: 2800
            });
        }
    });
}

var a = getApp();

module.exports.sendPhotos = t;